// 权限问题后期增加
import { get, post } from '/@/utils/http/axios'
import { BannerState } from '/@/store/modules/homePage/types'

enum URL {
  bannerList = '/api/student/banner/list/',
  newsList = '/api/student/information/list/',
  hotCourseList = '/api/student/hotcourses/',
  hotTeacherList = '/api/student/hotteachers/', // 学生端 热门老师

  newsDetail = '/api/student/information/detail/', // 新闻详情
}
/// 课程列表
const bannerList = async (data) => post<any>({ url: URL.bannerList, data })
const newsList = async (data) => post<any>({ url: URL.newsList, data })
const hotCourseList = async (data) => post<any>({ url: URL.hotCourseList, data });
const hotTeacherList = async (data) => post<any>({url :URL.hotTeacherList, data});
const newsDetail = async (data) => post<any>({url :URL.newsDetail, data});

export { bannerList, newsList, hotCourseList, hotTeacherList, newsDetail }